package com.yf.exam.modules.trainingarchives.studentinfo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yf.exam.aspect.mybatis.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学员信息表
 * </p>
 *
 * @author author
 * @since 2024-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("org_student_info")
@ApiModel(value="StudentInfo对象", description="学员信息表")
public class StudentInfo extends BaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学员ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "培训信息外键")
    private String trainingClassInfoId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "工作单位")
    private String workplace;

    @ApiModelProperty(value = "岗位/工种")
    private String position;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "民族")
    private String ethnicity;

    @ApiModelProperty(value = "籍贯")
    private String birthplace;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出生年月", example = "1985-05-20")
    private LocalDate dob;

    @ApiModelProperty(value = "政治面貌")
    private String politicalStatus;

    @ApiModelProperty(value = "毕业院校")
    private String graduatingSchool;


}
